package com.ibeetl.admin.core.service;

import com.ibeetl.admin.core.dao.FiDataCheckDetailBakDao;
import com.ibeetl.admin.core.entity.CoreSearch;
import com.ibeetl.admin.core.entity.FiDataCheckDetailBak;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class FiDataCheckDetailBakService {
	@Autowired
	FiDataCheckDetailBakDao fiDataCheckDetailBakDao;

	public void saveFiDataCheckDetailBak(FiDataCheckDetailBak fiDataCheckDetailBak) {
		fiDataCheckDetailBakDao.insert(fiDataCheckDetailBak);
	}

	public void deleteFromFiDataCkeckDetailBak(CoreSearch search) {
		fiDataCheckDetailBakDao.deleteFromFiDataCkeckDetailBak(search);
	}

	public List<FiDataCheckDetailBak> getFiDataCheckDetailDatas(CoreSearch coreSearch){
		return fiDataCheckDetailBakDao.getFiDataCheckDetailDatas(coreSearch);
	}
}
